<!--
 * @Author jiangzhiwei
 * @Date 2023-08-01 17:36:40
 * @LastEditors jiangzhiwei
 * @LastEditTime 2023-08-01 19:25:07
 * @FilePath \test-cron\src\views\HelloCronView.vue
 * @Description cron表达式测试页面
-->
<script setup lang="ts">
import { ref } from 'vue'
import CronView from '@/views/CronView.vue'
const cron = ref('5-7 0 18 31 * ? 2024')

const cronView = ref()

function open () {
  cronView.value.open(cron.value)
}
</script>

<template>
  <div>
    <el-input v-model="cron"></el-input>
    <el-button type="primary" @click="open">按钮</el-button>
    <CronView ref="cronView"></CronView>
  </div>
</template>